package com.dp.system.service;

import java.util.List;
import com.dp.system.domain.SysAlarmRule;

public interface ISysAlarmRuleService {
    /**
     * 查询报警规则
     */
    SysAlarmRule selectSysAlarmRuleByRuleId(Long ruleId);

    /**
     * 查询报警规则列表
     */
    List<SysAlarmRule> selectSysAlarmRuleList(SysAlarmRule sysAlarmRule);

    /**
     * 新增报警规则
     */
    int insertSysAlarmRule(SysAlarmRule sysAlarmRule);

    /**
     * 修改报警规则
     */
    int updateSysAlarmRule(SysAlarmRule sysAlarmRule);

    /**
     * 批量删除报警规则
     */
    int deleteSysAlarmRuleByRuleIds(Long[] ruleIds);

    /**
     * 删除单条报警规则
     */
    int deleteSysAlarmRuleByRuleId(Long ruleId);

    /**
     * 根据大棚ID查询报警规则
     * @param greenhouseId 大棚ID
     * @return 报警规则
     */
    SysAlarmRule selectSysAlarmRuleByGreenhouseId(Long greenhouseId);
}